package com.example.take_out_admin_api;

import io.jsonwebtoken.Claims;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(
        name = "take-out-admin",
        contextId = "take-out-admin"
)
public interface AdminClient {
    @GetMapping("/employeeApi/validateToken/{token}")
    boolean validateToken(@PathVariable("token") String token);

    @GetMapping("/employeeApi/parseJwt/{token}")
    String parseJwt(@PathVariable("token") String token);
}
